package com.wef.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wef.modules.generator.dao.PartyInfoDao;
import com.wef.modules.generator.entity.PartyInfoEntity;
import com.wef.modules.generator.service.PartyInfoService;



@Service("partyInfoService")
public class PartyInfoServiceImpl implements PartyInfoService {
	@Autowired
	private PartyInfoDao partyInfoDao;
	
	@Override
	public PartyInfoEntity queryObject(Long id){
		return partyInfoDao.queryObject(id);
	}
	
	@Override
	public List<PartyInfoEntity> queryList(Map<String, Object> map){
		return partyInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return partyInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(PartyInfoEntity partyInfo){
		partyInfoDao.save(partyInfo);
	}
	
	@Override
	public void update(PartyInfoEntity partyInfo){
		partyInfoDao.update(partyInfo);
	}
	
	@Override
	public void delete(Long id){
		partyInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		partyInfoDao.deleteBatch(ids);
	}
	
}
